<?php
	include '../conn/conn.php';
//	include '../isLogin_json.php';
if (!empty($_POST)) {
		
		$insert_sql = "UPDATE tb_news SET " .$_POST['field']." = ".$_POST['value']." , modifyTime = '". gmdate("Y-m-d H:i:s", time() + 8 * 3600)."'  where no = ".$_POST['id'];
		$result = mysqli_query($link, $insert_sql);
//var_dump($insert_sql);
		if ($result) {
			  echo '{"status":true,"data":"修改成功！"}';
		} else {
			 echo '{"status":false,"data":"修改失败！"}';
		}
	}

?>